<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title>Test Case for Issue #3122</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<h1>Issue #3122</h1>

<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=3122">Issue #3122</a>
- <span class="h3">Catch variables are not listed in the watch panel on break.</span>.
<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
<li>Enable the Script panel and refresh this page.</li>
<li>Press <span style="color:green">Execute Test</span> button.</li>
<li>Firebug should stop at <i>debugger</i> keyword.</li>
<li>Switch into the <i>Watch</i> side-panel.</li>
<li>You should see <code>err</code> variable in the panel.</li>
</ol>

<button id="testButton" onclick="onExecuteTest()">Execute Test</button>

<script type="text/javascript">
function onExecuteTest()
{
    try
    {
        x.y;
    }
    catch (err)
    {
        debugger;
    }
}
</script>

</body>
</html>
